#!/bin/bash
echo "#!/bin/bash" > program.txt

for((I=0;I<1024;I++)) do
    echo "echo $I" >> program.txt
done

chmod +x program.txt